function searchMember(arr, parentname, tagname, tag ) {
	for (var i = 0, j = arr.lenght; i != j; i++) {
		if (arr[i][parentname][tagname] == tag) {
			return i;
		}
	}
	return -1;
}

let searchMem = (arr, tagname, tagval) => {
	for (let i = 0, j = arr.length; i != j; i++) {
		if (arr[i][tagname] === tagval) {
			return i;
		}
	}
};


let goBack = (delta = 1) => {
	// console.log(getCurrentPages());
	wx.navigateBack({
		delta: delta
	})
}


module.exports.searchMember = searchMember;
module.exports.searchMem = searchMem;
module.exports.goBack = goBack;
